package com.mtw.bbs.gateway.feign;


import com.mtw.bbs.common.core.security.UserDetails;
import com.mtw.bbs.common.core.vo.Result;
import org.springframework.stereotype.Component;
import java.util.HashMap;

/**
 * Feign失败配置
 *
 */
@Component
public class AuthClientFallback implements AuthClient {


	@Override
	public Result<UserDetails> permission(HashMap<String,Object> param) {
		return Result.fail("鉴权失败");
	}

	@Override
	public Result<UserDetails> validate(HashMap<String, Object> params) {
		return Result.fail("token合法性检验失败");
	}
}
